package com.gccloud.design.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author ma.xiulan
 * @date 2021年04月09日 15:01
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "业务逻辑实体")
@TableName("bwp_business_mgnt")
public class BusinessMgntEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private int id;

    @ApiModelProperty(value = "业务类型ID")
    private Integer businessTypeId;

    @ApiModelProperty(value = "环节触发事件")
    private String type;

    @ApiModelProperty(value = "业务逻辑名称")
    private String name;

    @ApiModelProperty(value = "业务执行范围")
    private String execScope;

    @ApiModelProperty(value = "业务逻辑URI地址")
    private String execUri;

    @ApiModelProperty(value = "接口执行超时时长")
    private Integer execTimeout;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "修改人")
    private String modUser;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private String modTime;

    @ApiModelProperty(value = "逻辑唯一标识，命名规则：系统编号+唯一值")
    private String version;

    @ApiModelProperty(value = "调用重试次数")
    private Integer retries;

    @ApiModelProperty(value = "分库字段")
    private Integer shardingId;

    @ApiModelProperty(value = "流程平台主键")
    private String bwpId;
}
